package com.shigu.item.bo;

import com.shigu.MallRequest;
import com.shigu.MallResponse;
import lombok.Data;
import org.apache.ibatis.annotations.Param;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;

/**
 * @author 郭尔
 * @description 添加商品
 * @date 2019/1/13 15:37
 */
@Data
public class AddItemRequest extends MallRequest {
    @NotNull(message = "请输入商品编号")
    private String itemCode;

    private Long sellerId;
    @NotEmpty(message = "请输入商品名称")
    private String title;
    @NotEmpty(message = "请输入折扣价格")
    private String discount;
    @NotEmpty(message = "请输入商品价格")
    private String price;
    private Integer fakeSales;
    private Integer weight;
    @NotEmpty(message = "请上传商品展示图")
    private String images;
    @NotEmpty(message = "请上传商品详情图")
    private String details;
    @NotNull(message = "请选择运费模板")
    private Long feeId;
    private String params;//产品参数
    private String skus;//sku
    private Integer num;
    private String advertImg;
    @NotBlank(message = "请选择类目")
    private String cid;

    private String storeNum;//档口号
    private String goodsNo;//拿货号

}
